import { FormDynamicEntity } from './form.dynamic';

/**
 * 选择框(普通下拉框,联动下拉框)
 */
export class FormDynamicDropdownService extends FormDynamicEntity<string> {
  controlType = 'dropdown';
  type: string;
  dictionaryName: string;
  dictionaryService: string;
  // options: {key: string, value: string}[] = [];

  constructor(options: {} = {}) {
    super(options);
    this.type = options['type'] || '';
    this.dictionaryName = options['dictionaryName'] || '';
    this.dictionaryService = options['dictionaryService'] || {};
    // this.options = options['options'] || [];
  }
}